package com.china08.yxyapi.repository.db.continuedu;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.china08.yxyapi.entity.db.continuedu.YxyContinueduLessonItem;

public interface YxyContinueduLessonItemRepository extends JpaRepository<YxyContinueduLessonItem, String> {

    YxyContinueduLessonItem findById(String id);

    Integer countByLessonId(String lessonId);

    List<YxyContinueduLessonItem> findByLessonId(String lessonId);

    List<YxyContinueduLessonItem> findByLessonIdOrderByOrderNumAsc(String lessonId);

    List<YxyContinueduLessonItem> findByLessonIdInOrderByOrderNumAsc(List<String> idsList);
}
